package cn.sfrog.project.biz.admin.enums;



public enum BizServiceTypeEnum {

    /**
     * 陪诊
     */
    PENDING_SERVICE("1", "陪诊"),
    /**
     * 护理
     */
    PENDING_PAY("2", "护理"),
    /**
     * 问诊
     */
    PENDING_ORDER("3", "问诊");

    private String code;
    private String name;


    BizServiceTypeEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public String getCode() {
        return code;
    }

    public static BizServiceTypeEnum getInstance(String code) {
        BizServiceTypeEnum[] values = values();
        for (BizServiceTypeEnum bizOrderStatusEnum : values) {
            if (bizOrderStatusEnum.code.equals(code)) {
                return bizOrderStatusEnum;
            }
        }
        return null;
    }
}
